﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Gx.Common.Core
{
    public class PageInput
    {
        public int Page { get; set; }
        public int Rows { get; set; }
        //public PageInput()
        //{
        //    PageIndex = 1;
        //    PageSize = 10;
        //}

        //private int _pageSize;
        //public virtual int PageSize
        //{
        //    get => _pageSize > 100 ? 100 : (_pageSize == 0 ? 10 : _pageSize);
        //    set => _pageSize = value;
        //}

        //private int _pageIndex;

        //public virtual int PageIndex
        //{
        //    get { return _pageIndex == 0 ? 1 : _pageIndex; }
        //    set { _pageIndex = value; }
        //}

    }
}
